﻿<%@ Page Title="" Language="C#" MasterPageFile="~/kcadastro.Master" AutoEventWireup="true"
    CodeBehind="vms_list.aspx.cs" Inherits="Kcadastro.adm.vms_list" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <!-- ===== Sidebar Close and Content Part start ====== -->
    <div id="content_wrap">
        <div class="title_bar">
            <h2 class="page_title">
                Administrativo</h2>
        </div>
        <div class="content_area">
            <h3 class="cont_title">
                Cadastro de Servidores</h3>
            <br />
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                </label>
                <div id="select_serv" class="servicos_">
                <label class="checkbox inline">
                    <asp:CheckBox ID="ck_novo" runat="server" Text="Gravar como Novo" /> 
                </label>
                </div>
            </div>
            <div class="control-group">
                <div style="width: 250px;" class="FL devider">
                    <label for="focusedInput" class="control-label">
                        ID maq:</label>
                    <div class="controls">
                        <asp:TextBox ID="tbi_maq" Columns="2" ReadOnly="true" runat="server" CssClass="input_sml"></asp:TextBox>
                    </div>
                </div>
                <div style="width: 490px;" class="FR devider">
                    <label for="focusedInput" class="control-label">
                        Nome Maq:</label>
                    <div class="controls">
                        <asp:TextBox ID="tb_nome" Columns="4" MaxLength="10" runat="server" CssClass="input_sml"></asp:TextBox>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Local :</label>
                <div class="controls">
                    <asp:TextBox ID="tb_local" Columns="20" MaxLength="40" runat="server" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    url:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_url" Columns="50" MaxLength="200" runat="server" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <div style="width: 490px;" class="FR devider">
                    <label for="focusedInput" class="control-label">
                        ordem:</label>
                    <div class="controls">
                        <asp:TextBox ID="tb_ordem" Columns="3" MaxLength="3" runat="server" CssClass="input_sml"></asp:TextBox>
                    </div>
                </div>
                <div style="width: 200px;text-align:right" class="FL devider" >
 
                <div id="select_serv" class="select_serv">
                <label class="checkbox inline"  >
                        <asp:CheckBox ID="ck_ativa" runat="server"  /> Ativa
                        </label>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="control-group">
                <div style="width: 250px;" class="FL devider">
                    <label for="focusedInput" class="control-label">
                        WS INI:</label>
                    <div class="controls">
                        <asp:TextBox ID="tb_wsini" Columns="4" MaxLength="4" runat="server" CssClass="input_sml"></asp:TextBox>
                    </div>
                </div>
                <div style="width: 490px;" class="FR devider">
                    <label for="focusedInput" class="control-label">
                        WS FIM:</label>
                    <div class="controls">
                        <asp:TextBox ID="tb_wsfim" Columns="4" MaxLength="4" runat="server" CssClass="input_sml"></asp:TextBox>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                </label>
                <div class="controls">
                    <asp:Button CssClass="btn btn-primary" ID="bt_gravarMaq" runat="server" Text="Gravar"
                        OnClick="bt_gravarMaq_Click" />
                    <asp:Button ID="bt_apagar" runat="server" Text="Apagar" CssClass="btn btn-primary"
                        OnClick="bt_apagar_Click" />
                </div>
            </div>
            <asp:GridView ID="gv_lista" DataKeyNames="PK_IDmaq" runat="server" OnRowCommand="gv_lista_RowCommand"
                AutoGenerateColumns="false" OnPageIndexChanging="gv_lista_PageIndexChanging"
                AllowPaging="true" PageSize="20" CssClass="tableMain" AlternatingRowStyle-CssClass="altr_raw"
                HeaderStyle-CssClass="title_raw" Width="100%">
                <Columns>
                    <asp:BoundField DataField="PK_IDmaq" HeaderText="ID" />
                    <asp:BoundField DataField="nome" HeaderText="nome" />
                    <asp:BoundField DataField="local" HeaderText="local" />
                    <asp:BoundField DataField="url" HeaderText="url" />
                    <asp:BoundField DataField="wsini" HeaderText="ini" />
                    <asp:BoundField DataField="wsfim" HeaderText="fim" />
                    <asp:BoundField DataField="qtdvms" HeaderText="qtd" />
                    <asp:BoundField DataField="ordem" HeaderText="Ordem" />
                    <asp:BoundField DataField="ativa" HeaderText="Ativa" />
                    <asp:ButtonField CommandName="visualizar" ControlStyle-CssClass="view" />
                </Columns>
            </asp:GridView>
            <br />
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                </label>
                <div class="controls">
                    <asp:Button ID="bt_reconstruir" runat="server" Text="Reconstruir Rotas" CssClass="btn btn-primary"
                        OnClick="bt_reconstruir_Click" />
                </div>
            </div>
            <br />
            <asp:GridView ID="gv_ws" DataKeyNames="PK_ID" runat="server" OnRowCommand="gv_ws_RowCommand"
                AutoGenerateColumns="false" CssClass="tableMain" AlternatingRowStyle-CssClass="altr_raw"
                HeaderStyle-CssClass="title_raw" Width="100%">
                <Columns>
                    <asp:BoundField DataField="PK_ID" HeaderText="ID" />
                    <asp:BoundField DataField="local" HeaderText="local" />
                    <asp:BoundField DataField="rurl" HeaderText="url" />
                    <asp:BoundField DataField="ordem" HeaderText="ordem" />
                    <asp:BoundField DataField="ativo" HeaderText="Ativa" />
                    <asp:BoundField DataField="noar" HeaderText="NoAr" />
                    <asp:ButtonField CommandName="visualizar" ControlStyle-CssClass="view" />
                </Columns>
            </asp:GridView>
        </div>
        <!-- close content_area -->
    </div>
</asp:Content>
